
package org.winexpress

/**
 *
 * @author Swee Zhi
 */
class WineType {
    // e.g. red wine, white wine, rose wine
    int id
    String wineTypeName
    String description
    
    static hasMany = [wineVarietals:WineVarietal]
    
    static mapping = {
        description type: 'text'
    }
    
    static constraints = {
        id(blank:false, unique:true)
        wineTypeName(blank:false, unique:true)
    }
}

